package com.fun.feifun.modules.business.model.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BusinessAmountRecordPage implements Serializable  {
    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户编码")
    private String userCode;

    @ApiModelProperty(value = "页码")
    private Integer page=1;

    @ApiModelProperty(value = "分页数量")
    private int size=10;

    @ApiModelProperty(value = "排序字段")
    private String sort="id";

    public int getSize() {
        if(size==0)
            return 10;
        return size;
    }
    public int getPage() {
        if(page==0)
            return 1;
        return page;
    }
}
